<?php

/*$names = array("alex", "billy", "dale");

echo '<pre>' . print_r($names, true) . '</pre>'; */

$person = array (
    "name" => "alex",
    "age" => "24",
    "location" => "London"
);

$num = name;
echo $person[$num];

echo "my name is {$person["name"]} and i m {$person["age"]} ,so i live in {$person["location"]}";

echo '<pre>' . print_r($person, true) . '</pre>'; 
